<?php
echo '<div id="Form" class="Account FCKeditorPref Preferences">';
if (ForceIncomingInt('Success', 0)) echo '<div id="Success">'.$this->Context->GetDefinition('ChangesSaved').'</div>';
echo '<fieldset>
	<legend>'.$this->Context->GetDefinition("FCKeditorPreferences").'</legend>
	'.$this->Get_Warnings().'
	'.$this->Get_PostBackForm('frmFCKeditorPreference').'
	<h2>'.$this->Context->GetDefinition("FCKeditorConfiguration").'</h2>
	<ul>
		<li><p><span>'.$this->Context->GetDefinition('FCKeditorDefaultToolbar') .'</span></p>'.$this->ToolbarSelect->Get().'</li>
		<li><p><span>'.$this->Context->GetDefinition('FCKeditorDefaultLanguage') .'</span></p>'.$this->LanguageSelect->Get().'</li>
		<li><p><span>'.$this->Context->GetDefinition('FCKeditorDefaultLanguageDirection') .'</span></p>'.$this->LanguageDirectionSelect->Get().'</li>
		<li><p><span>'.$this->Context->GetDefinition('FCKeditorDefaultLinkTarget') .'</span></p>'.$this->LinkTargetSelect->Get().'</li>
		<li><p><span>'.$this->Context->GetDefinition('FCKeditorDefaultSkin') .'</span></p>'.$this->SkinSelect->Get().'</li>
		<li><p><span>'.$this->Context->GetDefinition('FCKeditorEnterMode') .'</span></p>'.$this->EnterModeSelect->Get().'</li>
		<li><p><span>'.$this->Context->GetDefinition('FCKeditorShiftEnterMode') .'</span></p>'.$this->ShiftEnterModeSelect->Get().'</li>
		<li><p><span>'.GetDynamicCheckBox('FCKEDITOR_SHOW_BLOCKS', 'true', $this->ConfigurationManager->GetSetting('FCKEDITOR_SHOW_BLOCKS')=='true' ? 1:0, '', $this->Context->GetDefinition('FCKeditorShowBlocks')).'</span></p></li>
	</ul>
	<h2>'.$this->Context->GetDefinition("FCKeditorPlugins").'</h2>
	<ul>
		<li><p><span>'.GetDynamicCheckBox('FCKEDITOR_PLUGIN_VIDEO', 'true', $this->ConfigurationManager->GetSetting('FCKEDITOR_PLUGIN_VIDEO')=='true' ? 1:0, '', $this->Context->GetDefinition('FCKeditorPluginsVideo')).'</span></p></li>
	</ul>

	<h2>'.$this->Context->GetDefinition("FCKeditorAttachment").'</h2>
	<p class="Description">'.$this->Context->GetDefinition("FCKeditorAttachmentNotes").'</p>
	<ul id="Attachment">
		<li><p><span>'.GetDynamicCheckBox('FCKEDITOR_FILEMANAGER', 'true', $this->ConfigurationManager->GetSetting('FCKEDITOR_FILEMANAGER') =='true' ? 1:0 , '', $this->Context->GetDefinition('FCKeditorAttachmentEnable')).'</span></p>
		<input type="text" name="FCKEDITOR_UPLOAD_PATH" value="'.$this->ConfigurationManager->GetSetting('FCKEDITOR_UPLOAD_PATH').'" maxlength="100" class="SmallInput" style="width: 98%;" /></li>
		<li><p class="Description">'.$this->Context->GetDefinition('FCKeditorEnableLinkWarning').'</p></li>
		<li><p><span>'.GetDynamicCheckBox('FCKEDITOR_IMAGE', 'true', $this->ConfigurationManager->GetSetting('FCKEDITOR_IMAGE') =='true' ? 1:0, '', $this->Context->GetDefinition('FCKeditorEnableImage')).'</span></p><input type="text" name="FCKEDITOR_IMAGE_ALLOWED_EXTENSIONS" value="'.$this->ConfigurationManager->GetSetting('FCKEDITOR_IMAGE_ALLOWED_EXTENSIONS').'" maxlength="100" class="SmallInput" style="width: 98%;" /></li>
		<li><p><span>'.GetDynamicCheckBox('FCKEDITOR_FLASH', 'true', $this->ConfigurationManager->GetSetting('FCKEDITOR_FLASH') =='true' ? 1:0, '', $this->Context->GetDefinition('FCKeditorEnableFlash')).'</span></p><input type="text" name="FCKEDITOR_FLASH_ALLOWED_EXTENSIONS" value="'.$this->ConfigurationManager->GetSetting('FCKEDITOR_FLASH_ALLOWED_EXTENSIONS').'" maxlength="100" class="SmallInput" style="width: 98%;" /></li>		
		<li><p><span>'.GetDynamicCheckBox('FCKEDITOR_LINK', 'true',$this->ConfigurationManager->GetSetting('FCKEDITOR_LINK') =='true' ? 1:0, '', $this->Context->GetDefinition('FCKeditorEnableLink')).'</span></p>
		<input type="text" name="FCKEDITOR_LINK_ALLOWED_EXTENSIONS" value="'.$this->ConfigurationManager->GetSetting('FCKEDITOR_LINK_ALLOWED_EXTENSIONS').'" maxlength="210" class="SmallInput" style="width: 98%;" /></li>
	
	</ul>
	
	<div class="Submit">

	<input type="submit" name="btnSave" value="'.$this->Context->GetDefinition('Save').'" class="Button SubmitButton" />
	<a href="'.GetUrl($this->Context->Configuration, $this->Context->SelfUrl).'" class="CancelButton">'.$this->Context->GetDefinition('Cancel').'</a>
	</div>
</form>
</fieldset>
</div>';
?>